#ifndef _INHERITANCE_H_
#define _INHERITANCE_H_

#include <windows.h>
#include <string>

//tolua_begin
typedef enum {
	YELLOW = 0,
	BLUE = 1,
	GREEN = 2,
	RED = 3,
	WHITE = 4,
	BLACK = 5
}Color;
//tolua_end

class Base	//tolua_export
{	//tolua_export
protected:
	Color m_color;
//tolua_begin
public:
	Base(Color color = WHITE):m_color(color){}
	virtual ~Base(){}

	void SetColor(Color color)
	{
		m_color = color;
	}
	Color GetColor()
	{
		return m_color;
	}
};
//tolua_end

//tolua_begin
struct Point
{
	Point(){}
	~Point(){}
	int x;
	int y;
};
//tolua_end

class Derive :public Base	//tolua_export
{	//tolua_export
private:
	Point m_point;

	//tolua_begin
public:
	Derive(){}
	~Derive(){}
	Point& GetPoint()
	{
		return m_point;
	}
	void SetPoint(Point& point)
	{
		m_point = point;
	}
};
//tolua_end
#endif